package com.jhs.boot.common.enums;

import lombok.Getter;


@Getter
public enum NodesColorEnum {
    TOP(0, "#4f19c7","#808080"),
    MID(1, "#19c7a3","#808080"),
    END(2, "#c77f19","#808080"),
    RFID(3, "#c77f19","#808080"),
    ;

    private final Integer mode;
    private final String color;
    private final String color_no;
    NodesColorEnum(Integer mode, String color,String color_no) {
        this.mode = mode;
        this.color = color;
        this.color_no = color_no;
    }
    public static NodesColorEnum find(Integer mode) {
        for (NodesColorEnum value : NodesColorEnum.values()) {
            if (value.mode.equals(mode)) {
                return value;
            }
        }
        return TOP;
    }

}
